package com.xiaowei.gym.gymjsp.ware.service;

import com.xiaowei.gym.gymjsp.ware.entity.UserEntity;

import java.security.NoSuchAlgorithmException;
import java.sql.SQLException;
import java.util.List;

public interface UserService {

    void createUser(UserEntity user);

    UserEntity getUserById(int id) throws SQLException;

    UserEntity getUserByUsername(String username) throws SQLException;

    boolean verifyPassword(UserEntity user, String password) throws NoSuchAlgorithmException;

    int getUserCount();

    UserEntity validate(String username, String password);

    List<UserEntity> getUserList(String queryUserName, int currentPageNo, int pageSize);
}
